package cn.service.impl;

import cn.entity.Detail;
import cn.mapper.DetailMapper;
import cn.service.DetailService;
import cn.service.impl.BaseServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;
@Service
@Transactional//开启事务
public class DetailServiceImpl extends BaseServiceImpl<Detail> implements DetailService {

    @Autowired
    DetailMapper detailMapper;
    @Override
    public List<Detail> detailList(Long id) {
        return detailMapper.detailList(id);
    }
}
